﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VolunteerHubAdapter.Models
{
    public enum EventQueryType
    {
        ByDate,
        Selected
    }

    public class Settings
    {
        public string URL { get; set; }
        public string User { get; set; }
        public string Password { get; set; }
        public DateTime LastRunDate { get; set; }
        public DateTime EndRunDate { get; set; }

        public Boolean Valid()
        {
            if ((URL == null) || (URL == string.Empty)) return false;
            if ((User == null) || (User == string.Empty)) return false;
            if ((Password == null) || (Password == string.Empty)) return false;
            if ((LastRunDate == null) || (LastRunDate == DateTime.MinValue)) return false;

            return true;
        }
    }
}
